package ua.com.hackaton.core;


import android.graphics.Paint;
import ua.com.hackaton.core.awt.Font;
import ua.com.hackaton.core.awt.Rectangle2D;
import ua.com.hackaton.core.awt.Shape;

/**
 * Created by IntelliJ IDEA.
 * User: Eugene Borshch
 */
public class Word
{
    private String fontFamily = null;
    private int weight;
    private String text = "";
    private Shape shape;
    private Rectangle2D bounds;
    private Paint fill = null;
    private Paint stroke = null;
    private float lineHeight = 1.0f;
    private String title = null;
    private boolean rotate ;

    private Font font;



    public Word(String text, int weight)
    {
        this.text = text;
        this.weight = weight;
        if (this.weight <= 0) throw new IllegalArgumentException("bad weight " + weight);
    }

    public String getText()
    {
        return text;
    }

    public int getWeight()
    {
        return weight;
    }

    public void setFontFamily(String fontFamily)
    {
        this.fontFamily = fontFamily;
    }

    public String getFontFamily()
    {
        return fontFamily;
    }

    public void setFill(Paint fill)
    {
        this.fill = fill;
    }

    public Paint getFill()
    {
        return fill;
    }

    public void setStroke(Paint stroke)
    {
        this.stroke = stroke;
    }

    public Paint getStroke()
    {
        return stroke;
    }

    public float getLineHeight()
    {
        return lineHeight;
    }

    public void setLineHeight(float lineHeight)
    {
        this.lineHeight = lineHeight;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }


    public Shape getShape()
    {
        return shape;
    }


    public Font getFont()
    {
        return font;
    }

    public void setFont(Font font)
    {
        this.font = font;
    }

    public void setShape(Shape shape)
    {
        this.shape = shape;
    }

    public Rectangle2D getBounds()
    {
        return bounds;
    }

    public void setBounds(Rectangle2D bounds)
    {
        this.bounds = bounds;
    }

    public boolean isRotate()
    {
        return rotate;
    }

    public void setRotate(boolean rotate)
    {
        this.rotate = rotate;
    }
}
